import request from '../utils/request.js'
// 商品分类
export const cateList = (params) => {
    return request({
        method: "get",
        url: "/goods/catelist",
        params
    })
}
//   修改分类
export const editList = (data) => {
    return request({
        method: "post",
        url: "/goods/editcate",
        data
    })
}
// 添加分类
export const addList = (data) => {
    return request({
        method: "post",
        url: "/goods/addcate",
        data
    })
}
//   商品列表
export const goodsList = (params) => {
    return request({
        method: "get",
        url: "/goods/list",
        params
    })
}
//   商品添加
export const addData = (data) => {
    return request({
        method: "post",
        url: "/goods/add",
        data
    })
}
